package com.brambila.releaseme;

public class GameProportions {

	int width, height;
	private final int mainlyWidth = 320;
	private final int mainlyHeight = 480;

	private GameProportions(int width, int height) {
		this.width = width;
		this.height = height;
	}

	private static GameProportions instance = null;

	public static GameProportions getInstance(int width, int height) {

		if (instance == null)
			instance = new GameProportions(width, height);

		return instance;
	}
	
	public static GameProportions getInstance() {
		return instance;
	}

	public int getXProportion() {
		return width / mainlyWidth;
	}
	
	public int getYProportion(){
		return height / mainlyHeight;
	}
}